package com.army.stock.dao;

import com.army.stock.domain.ArmyYearplan;
import com.army.stock.domain.ArmyYearplanItem;

import java.util.List;
import java.util.Map;

/**
 * Created by zhangyong on 15/1/7.
 */
public interface ArmyYearplanDao {

    public List<ArmyYearplan> getArmyYearplans(Map<String, Object> params);

    public List<Map> getArmyYearplansMapList(Map<String, Object> params);

    public Integer getCountArmyYearplans(Map<String, Object> params);

    public Integer getCountArmyYearplansFinance(Map<String, Object> params);

    public Integer insertArmyYearplan(ArmyYearplan ArmyYearplan);

    public Integer insertArmyYearplanItem(ArmyYearplanItem armyYearplanItem);

    public ArmyYearplan getArmyYearplanById(Long id);

    public Integer updateArmyYearplan(ArmyYearplan ArmyYearplan);

    public Integer delArmyYearplan(Long id);

    public Integer delArmyYearplanItemsByYearPlanId(Long yearPlanId);

    public Integer getCountArmyYearplanItems(Map<String, Object> params);

    public List<Map> getArmyYearplanItems(Map<String, Object> params);

    public List<Map> getAllArmyYearPlanItems(Long id);

    public List<ArmyYearplan> getArmyYearPlanByDepartmentId(Long departmentId);


}
